package com.portico.dept.solarch

class ProjectTeamMember {

    Person user ;
    String projectRole ;
    String department ;
    boolean active = true ; 
    Date startDate ;
    Date endDate ;
    String note ;

    static constraints = {
      projectRole (shared:"ProjectRoleTypeList")
      department (shared:"DeptTypeList")
      startDate (blank:false)
      endDate(validator : {val, obj ->
      if (val != null) {
        return val.after (obj.startDate)
      } else
        return true
    })
      note (maxSize:40000)
    }
  static belongsTo = [project:Project]
}
